<?php 
session_start(); 
      if (isset($_SESSION['k_username'])) {
include('../../conexion.inc.php');
$link = Conectarse();	mysql_select_db("gotica_sociosgotica",$link);	  ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Tareas</title>
<link href="../../css/style.css" rel="stylesheet" type="text/css" media="all" />
</head>

<body>
<h1>Tareas</h1>
<p>&nbsp;</p>
<form id="form1" name="form1" method="post" action="editt.php">
 <table>
  <?
$fecha = date("y-m-d");
$user=$_SESSION['k_username'];
$sql1 = "SELECT * FROM tareas WHERE idtarea=$_POST[valor] ";
$result1 = mysql_query($sql1, $link);
$row1 = mysql_fetch_array($result1);
echo "<input type=\"hidden\" name=\"idtarea\" value=\"$row1[idtarea]\" />";

?>
<tr>
<td>
<textarea name="descripcion" cols="40" rows="5" dir="ltr" lang="es" >
<? 
echo $row1['T_descripcion']; 

?> </textarea>
</td></tr>
<tr>
<td>
<input type="submit" value="Editar" name="enviar" />
</td>
</tr>
</table>
</form>
</body>

</html>
<?
}else
{
	echo "<SCRIPT LANGUAGE=\"javascript\">";
echo "location.href = \"index2.php\"";
echo "</SCRIPT>";
	}
?>
